-- GENERATED SPELL FOR [Bloodmoon Cultist] --


function spell0_27024(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(32714,pUnit)
pUnit:RegisterEvent('Sorts_27024', 8323, 1)
end

function spell1_27024(pUnit, Event) --@Infected Worgen Bite,n/a--
pUnit:FullCastSpellOnTarget(53094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27024', 0, 1)
end

function spell2_27024(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27024', 619, 1)
end

function Sorts_27024(pUnit, Event)
local choix_sorts_27024 = math.random(0, 2)
if choix_sorts_27024 == 0 then
pUnit:RegisterEvent('spell0_27024', 1, 1)
end
if choix_sorts_27024 == 1 then
pUnit:RegisterEvent('spell1_27024', 1, 1)
end
if choix_sorts_27024 == 2 then
pUnit:RegisterEvent('spell2_27024', 1, 1)
end
end

function mob27024_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27024', math.random(1500, 3000), 1)
end

function mob27024_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27024_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27024_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27024, 1, 'mob27024_Action')
RegisterUnitEvent(27024, 2, 'mob27024_Leave')
RegisterUnitEvent(27024, 3, 'mob27024_Kill')
RegisterUnitEvent(27024, 4, 'mob27024_Die')
